Skip to content

introduce reduce with inout accumulator parameter#2611

Closed
kjaklinovic wants to merge 1 commit intoReactiveX:mainfrom
kjaklinovic:reduce-into
Closed

introduce reduce with inout accumulator parameter#2611
kjaklinovic wants to merge 1 commit intoReactiveX:mainfrom
kjaklinovic:reduce-into

Conversation

@kjaklinovic
Copy link

The scan function has a variant in which it takes an input parameter as the first accumulator argument. I find that function more convenient since it requires a bit less code for the accumulator. I noticed that the same is not true for reduce, so I decided to introduce this behavior. I pretty much followed the same code style as scan has. I did the same for tests too, for every ~second existing test for reduce I introduced the new variant of the operator.

@kjaklinovic
Copy link
Author

Hi @freak4pc , are there any further actions I need do perform for this one ? I can't check the logs of the failing checks.

@freak4pc
Copy link
Member

Cleaning up the repo and closing old PRs. If this is still something you're interested in pursuing, feel free to comment and we can re-open and discuss. Thanks!

@freak4pc freak4pc closed this Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments